import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'userStateToText',
})
export class UserStateToTextPipe implements PipeTransform {
  transform(value: number, ...args: unknown[]): string {
    const stateTexts = ['已创建', '已支付', '已完成', '已关闭'];

    return stateTexts[value];
  }
}
